package io.github.talelin.latticy.dto.stock;

import io.github.talelin.latticy.common.enumeration.StockModelEnum;
import io.github.talelin.latticy.dto.query.BasePageDTO;
import lombok.Data;

import javax.validation.constraints.Positive;
import javax.validation.constraints.PositiveOrZero;
import java.io.Serializable;

/**
 * ClassName StockPageDTO
 * Description
 * Create by zcy
 * Date 2022-06-28
 */
@Data
public class StockPageDTO extends StockDTO implements Serializable {
    private static final long serialVersionUID = -2370787531635919715L;



    /**
     * 1.在途2.待上架3.可用 4.不良品 5.出库
     */
    private StockModelEnum stockType;

    /**
     * 查询范围 最小值
     */
    @PositiveOrZero
    private Integer min;

    /**
     * 查询范围 最大值
     */
    @Positive
    private Integer max;
}
